package com.cinyi.cyds.util;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * 项目参数工具类
 * 
 * @author core-system-dev
 * 
 */
public class MessageUtil {

	private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("message");

	/**
	 * 获得sessionInfo名字
	 * 
	 * @return
	 */
	public static final String getSessionInfoName() {
		try{
			return bundle.getString("sessionInfoName");
		}catch(MissingResourceException mre){
			return "" ;
		}
	}

	/**
	 * 通过键获取值
	 * 
	 * @param key
	 * @return
	 */
	public static final String get(String key) {
		return bundle.getString(key);
	}

}
